/// WithdrawOrderPageByTeamIdRequestDto
class WithdrawOrderPageByTeamIdRequestDto {
  /// 当前页 默认 1
  final int? pageNum;
  /// 每页记录数 默认 10
  final int? pageSize;
  /// 财务代理团队ID
  final int agencyTeamId;
  /// 申请时间-开始
  final String? createTimeBegin;
  /// 申请时间-截止
  final String? createTimeEnd;
  /// 结账状态，1已结账，0未结账
  final int? settleStatus;

  WithdrawOrderPageByTeamIdRequestDto({
    this.pageNum,
    this.pageSize,
    required this.agencyTeamId,
    this.createTimeBegin,
    this.createTimeEnd,
    this.settleStatus,
  });

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    if (pageNum != null) data['pageNum'] = pageNum;
    if (pageSize != null) data['pageSize'] = pageSize;
    data['agencyTeamId'] = agencyTeamId;
    if (createTimeBegin != null) data['createTimeBegin'] = createTimeBegin;
    if (createTimeEnd != null) data['createTimeEnd'] = createTimeEnd;
    if (settleStatus != null) data['settleStatus'] = settleStatus;
    return data;
  }

  factory WithdrawOrderPageByTeamIdRequestDto.fromJson(Map<String, dynamic> json) {
    return WithdrawOrderPageByTeamIdRequestDto(
      pageNum: json['pageNum'],
      pageSize: json['pageSize'],
      agencyTeamId: json['agencyTeamId'],
      createTimeBegin: json['createTimeBegin'],
      createTimeEnd: json['createTimeEnd'],
      settleStatus: json['settleStatus'],
    );
  }
}